var express = require('express');
var router = express.Router();
let jwt = require('jsonwebtoken');
let multiparty = require('multiparty');
let { userModel, houseModel } = require('../model/model');

router.get('/getHouseList', async (req, res) => {
  let houseList = await houseModel.find();
  res.status(200).send({ message: 'success', data: houseList, code: 200 });
});

module.exports = router;
